/* SZ3YAN by Sze Yan

   Structure of 2.szeyan_about.css
   |
   ├─ 1. aboutMe
   ├─ 2. moreaboutMe
   ├─ 3. newsletter
     
    /* --------------------------------------------------------------------------
        1. aboutMe
    -------------------------------------------------------------------------- */

    .aboutMe__header {
        padding-bottom: 70px;
    }
    
    .aboutMe__intro {
        padding-top: 5em;
        text-align: center;
        letter-spacing: -.005em;
        color: var(--black);
    }

    .aboutMe__intro h2 {
        font-size: 45px;
        font-weight: 100;
    }

    .aboutMe__intro h6 {
        margin-bottom: 10px;
        font-size: 16px;
        font-weight: 100;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--dark-grey);
    }
    
    .aboutMe__description {
        padding-top: 10px;
        max-width: 710px;
        margin: auto;
        color: var(--grey);
    }

    .aboutMe__description span {
        color: var(--blue);
    }

    /* --------------------------------------------------------------------------
        2. moreaboutmE
    -------------------------------------------------------------------------- */
    
    .moreaboutMe .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .moreaboutMe__gallery {
        display: grid;
        grid-gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-auto-rows: 250px;
        grid-auto-flow: dense; 
        padding: 10px;
    }
      
    .v-stretch {
        grid-row: span 2;
    }
    
    .h-stretch {
        grid-column: span 2;
    }
    
    .big-stretch {
        grid-column: span 2;
        grid-row: span 2;
    }

    .moreaboutMe__card {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        color: white;
    }

    .moreaboutMe__intro {
        display: none;
    }

    .content1, .content2, .content3, .content4, .content5, .content6, .content7 {
        background-size: cover;
        border-radius: 16px;
    }
    
    .content1 {
        background-image: url("../1. SZ3YAN_design/2. szeyan_about_design/icit.jpg");
    }

    .content2 {
        background-image: url("../1. SZ3YAN_design/2. szeyan_about_design/badminton.jpg");
    }

    .content2 #overlay1 p span a {
        color: white;
    }

    .content2 #overlay1 p span a:hover {
        color: var(--black);
    }

    .content3 {
        background-image: url("../1. SZ3YAN_design/2. szeyan_about_design/ncdcc.jpg");
    }

    .content4 {
        background-image: url("../1. SZ3YAN_design/2. szeyan_about_design/python.jpg");
    }

    .content5 {
        background-image: url("../1. SZ3YAN_design/2. szeyan_about_design/hiking.jpg");
    }

    .content6 {
        background-image: url("../1. SZ3YAN_design/2. szeyan_about_design/photography.jpg");
    }

    .content7 {
        background-image: url("../1. SZ3YAN_design/2. szeyan_about_design/backend.jpg");
    }

    .moreaboutMe__card button {
        display: none;
        position: absolute;
        bottom: 24px;
        right: 24px;
        height: 33px;
        width: 33px;
        border-radius: 50%;
        background-color: var(--grey);
    }

    .moreaboutMe__card:hover button, .moreaboutMe__card:hover .moreaboutMe__intro {
        display: block;
    }

    .moreaboutMe__card button:hover {
        cursor: pointer;
    }

    .moreaboutMe__turn1, .moreaboutMe__turn2, .moreaboutMe__turn3, .moreaboutMe__turn4, .moreaboutMe__turn5, .moreaboutMe__turn6, .moreaboutMe__turn7 {
        height: 50%;
    }

    .turning {
        animation: buttonanimate 1s;
        animation-fill-mode: forwards;
    }

    .blue {
        background-image: url("../1. SZ3YAN_design/2. szeyan_about_design/blue.png");
    }

    .blue h3 {
        opacity: 0;
    }

    #overlay, #overlay1, #overlay2, #overlay3, #overlay4, #overlay5, #overlay6 {
        display: flex;
        flex-direction: column;
        position: absolute;
        width: 100%;
        text-align: center;
        opacity: 0;
    }

    @keyframes buttonanimate {
        from {
            transform: rotate(0deg)
        }

        to {
            transform: rotate(45deg)
        }
    }
    
    @media screen and (max-width: 515px) {
      .v-stretch {
          grid-row: span 1;
      }
    
      .h-stretch {
          grid-column: span 1;
      }
    
      .big-stretch {
          grid-column: span 1;
          grid-row: span 1;
      }
    }

    /* --------------------------------------------------------------------------
        3. newsletter
    -------------------------------------------------------------------------- */

    .newsletter__header {
      height: 100vh;
  }

    .newsletter__header .container {
        padding-top: 14%;
    }

    .newsletter__intro {
        padding-top: 2.5em;
        text-align: center;
        font-weight: 100;
        letter-spacing: -.005em;
        color: var(--black);
    }

    .newsletter__intro h6 {
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: .05em;
        font-size: 16px;
        font-weight: 100;
        color: var(--grey);
    }

    .newsletter__intro h2 {
        font-size: 45px;
        font-weight: 100;
    }
    
    .newsletter__description {
        padding-top: 10px;
        padding-bottom: 20px;
        text-align: center;
        font-weight: 100;
        color: var(--grey);
    }

    .newsletter__question {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        max-width: 500px;
        margin: auto;
        margin-bottom: 16px;
        color: white;
    }

    .newsletter__question select {
        display: block;
        width: 100%;
        height: 40px;
        margin-bottom: 16px;
        padding: 0 18px 0 18px;
        border: none;
        border-radius: 20px;
        -webkit-appearance: none;
        line-height: 18px;
        font-size: 14px;
        background: var(--grey);
        color: inherit;
    }

    .newsletter__header button {
        padding: 0 18px;
        height: 30px;
        border-radius: 15px;
        color: white;
        background-color: var(--blue);
    }

    .newsletter__question input {
        display: block;
        width: 100%;
        height: 40px;
        padding: 0 42px 0 18px;
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 18px;
        border: none;
        border-radius: 15px;
        outline: none;
        color: white;
        background: var(--grey);
    }

    .newsletter__question textarea {
        margin-bottom: 16px;
    }

    .newsletter__question input::placeholder, #hishow textarea::placeholder {
        color: white;
    }

    #hishow p, #colabshow p {
        margin-bottom: 20px;
        text-align: center;
        color: var(--grey);
    }

    #colabshow, #hishow {
        width: 100%;
    }

    #hishow textarea, #colabshow textarea {
        padding: 14px 18px;
        width: 100%;
        resize: none;
        border: none;
        border-radius: 15px;
        font-size: 14px;
        background-color: var(--grey);
        color: white;
    }
    
    #hishow textarea::placeholder, #colabshow textarea::placeholder {
        color: white;
    }

    @media (max-width: 890px) {
        .newsletter__intro h2{
            font-size: 36px;
        }

        .newsletter__description {
            font-size: 16px;
        }
    }
/*